{extend name="public:_base" /}
{block name="main"}



<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray">
            <span>
                <a class="btn radius btn-primary" href="{:url(\''.\\think\\Request::instance()->controller().'/indexall',['status'=>0])}">待审核</a>
            </span>
            <span>
                <a class="btn radius btn-success" href="{:url(\''.\\think\\Request::instance()->controller().'/indexall',['status'=>1])}">已通过</a>
            </span>

        <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>
    <div class="mt-10">
        <table class="layui-table">
            <thead>
            <tr class="text-c">
                <!--<th width="40"><input name="" type="checkbox" value=""></th>-->
                <th width="40">ID</th>
                <!--<th width="100">公司</th>-->
                <th width="100">昵称</th>
                <th width="100">电话</th>
                <th width="100">{:sort_by('创建时间','create_time')}</th>
                <th width="100">状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo" empty="$_html_empty"}
                <tr class="text-c va-m">
                    <!--<td><input name="id[]" type="checkbox" value="{$vo.id}"></td>-->
                    <td>{$Think.get.page?(($Think.get.page-1)*$Think.config.paginate.list_rows+$i):($i)}</td>
                    <!--<td>{$vo.company}</td>-->
                    <td>
                        {$vo.name}
                    </td>
                    <td>
                        {$vo.tel}
                    </td>
                    <td>
                        {$vo.create_time}
                    </td>
                    <td>
                        {$vo.status|show_status=$vo.id}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn radius btn-xs btn-success" onClick="edit('查看','{:url('Massage/edit',['id'=>$vo.id])}','10001')" href="javascript:;" title="查看">查看</a>
                        <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger" onClick="del_old(this,'{:url('Massage/del',['id'=>$vo.id])}','10001')" href="javascript:;" title="删除">删除</a>-->
                        <a style="text-decoration:none" class="btn radius btn-xs btn-danger" onClick="del('{:url('Massage/del')}',{$vo.id})" href="javascript:;" title="删除">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        {$list->render()}

    </div>
</div>
</div>
{/block}